package com.chen.dao;

import com.chen.entity.TtEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Title: manager-spring-mvc-hb
 * @Description: to do
 * @Author: chenjiwei
 * @Date: 2020-11-12 22:15
 * @Version: 1.0.0
 */
@Repository
public interface TtDao extends JpaRepository<TtEntity, Integer>, JpaSpecificationExecutor<TtEntity> {
    @Query(value="select num1, num2, num3 from t_test",nativeQuery=true)
    public List counts();
}
